{extend name="common/layout" /}


{block name="style"}{/block}

{block name="content"}

{include file="common/cur_local"}
<link href="__MEMBER_PATH__/css/layout.css" rel="stylesheet" type="text/css"/>
<div class="nch-container wrapper">
  <div class="left">
    <div class="nch-module nch-module-style01">
      <div class="title">
        <h3>文章分类</h3>
      </div>
      <div class="content">
        <div class="nch-sidebar-article-class">
          <ul>
             {notempty name='sub_class_list'}
             {foreach $sub_class_list as $k=>$v}  
          
            <li><a href="<?php echo url('home/Article/article', array('ac_id'=>$v['ac_id']));?>"><?php echo $v['ac_name']?></a></li>
              {/foreach}
               {/notempty}

          </ul>
        </div>
      </div>
    </div>
   <!--  <div class="nch-module nch-module-style03">
      <div class="title">
        <h3>最新文章</h3>
      </div>
      <div class="content">
        <ul class="nch-sidebar-article-list">
         {notempty name='new_article_list'}
         {foreach $new_article_list as $k=>$v}  

          <li><i></i><a <?php if($v['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($v['article_url']!='')echo $v['article_url'];else echo url('home/Article/show', array('article_id'=>$v['article_id']));?>"><?php echo $v['article_title']?></a></li>
            {/foreach}
            {else}
          <li>没有最新文章</li>
            {/notempty}
        </ul>
      </div>
    </div> -->
  </div>
  <div class="right">
    <div class="nch-article-con">
      <h1>{$article.article_title}</h1>
      <h2>{$article.article_time|format_time}</h2>
      <div class="default">
        <p>{:html_entity_decode($article.article_content)}</p>
      </div>
      <div class="more_article"> <span class="fl">上一篇：
      {notempty name='pre_article'}
       
        <a <?php if($pre_article['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($pre_article['article_url']!='')echo $pre_article['article_url'];else echo url('home/Article/show', array('article_id'=>$pre_article['article_id']));?>"><?php echo $pre_article['article_title'];?></a> <time><?php echo date('Y-m-d H:i',$pre_article['article_time']);?></time>
        {else /}
        没有符合条件的文章
        {/notempty}
        </span> <span class="fr">下一篇：
        {notempty name='next_article'}
       
        <a <?php if($next_article['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($next_article['article_url']!='')echo $next_article['article_url'];else echo url('home/Article/show', array('article_id'=>$next_article['article_id']));?>"><?php echo $next_article['article_title'];?></a> <time><?php echo date('Y-m-d H:i',$next_article['article_time']);?></time>
       {else /}
        没有符合条件的文章
        {/notempty}
        </span> </div>
    </div>
  </div>
</div>


{/block}